package com.aspose.cells;

import java.util.HashMap;
import java.util.Iterator;

class zapr {
   int a;
   int b;
   double c;
   boolean d;
   String e;
   int f = -1;
   HashMap g = new HashMap();
   int h;
   String i;

   void a(zapr var1) {
      this.c = var1.c;
      this.d = var1.d;
      this.e = var1.e;
      this.f = var1.f;
      this.h = var1.h;
      this.i = var1.i;
   }

   void a(zapy var1, int var2) {
      int var3 = 0;
      String var4 = null;
      if (this.g != null && this.g.size() != 0) {
         boolean var5 = false;
         Iterator var6 = this.g.keySet().iterator();

         while(var6.hasNext()) {
            String var7 = (String)var6.next();
            int var8 = (Integer)this.g.get(var7);
            if ("default".equals(var7.toLowerCase())) {
               var8 += '\uffff' - var2 + 1;
               var5 = true;
            }

            if (var3 < var8) {
               var4 = var7;
               var3 = var8;
            }
         }

         if (!var5 && var3 < '\uffff' - var2 + 1) {
            var4 = var1.p;
         }

         if (var4 != null) {
            if ("default".equals(var4.toLowerCase())) {
               var4 = var1.p;
            }

            if (var1.c.get(var4) != null) {
               Object var9 = var1.c.get(var4);
               Style var10 = var1.b.getWorksheets().B().a((Integer)var9);
               if (var10.getName() != null && !"".equals(var10.getName())) {
                  this.h = var1.b.getWorksheets().B().a(var10, (Integer)var9);
               } else {
                  this.h = (Integer)var9;
               }

               this.i = var4;
            } else {
               this.h = -1;
               this.i = null;
            }
         } else {
            this.h = -1;
            this.i = null;
         }
      } else {
         this.h = -1;
         this.i = null;
      }

      this.g = null;
   }
}
